package cn.bmbanjia.zebra2024.apps.base.dispatchClewLog.entity;

import cn.bmbanjia.zebra2024.mybatisflex.BaseEntity;
import cn.bmbanjia.zebra2024.mybatisflex.InsertOrUpdateListener;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.*;
import lombok.experimental.SuperBuilder;

import java.sql.Timestamp;

/**
 * 线索分配日志 实体类。
 *
 * @author fugui
 * @since 2024-07-28
 */
@EqualsAndHashCode(callSuper = true)
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@Table(value = "bm_dispatch_clew_log", onUpdate = InsertOrUpdateListener.class, onInsert = InsertOrUpdateListener.class)
public class DispatchClewLog extends BaseEntity {

    /**
     * dispatch_clew_id
     */
    @Id(keyType = KeyType.Auto)
    private Integer dispatchClewId;

    /**
     * 线索ID
     */
    private Integer clewId;

    /**
     * 用户ID
     */
    private Integer userId;

    /**
     * 用户
     */
    private String userName;

    /**
     * 0=系统分配 1=人工分配
     */
    private Integer type;

    /**
     * 电话通知次数
     */
    private Integer phoneCount;

}
